package com.qin.bean;
/**
* C命名空间注入
 * 主要是对构造方法注入的简化
 * 其方法是基于构造方法的，必须有构造方法
* */
public class CnameDog {
    private String name;
    private Integer age;
    private String food;

    @Override
    public String toString() {
        return "CnameDog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", food='" + food + '\'' +
                '}';
    }

    public CnameDog(String name, Integer age, String food) {
        this.name = name;
        this.age = age;
        this.food = food;
    }
}
